From 89b6b19a224e7718500a00182e0099f45e877896 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 15 Oct 2009 08:30:31 +0100 Subject: [PATCH] x86: Remove unused temporay variable 'old_gvec'. Signed-off-by: Xiantao Zhang --- xen/drivers/passthrough/io.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/drivers/passthrough/io.c b/xen/drivers/passthrough/io.c index ffd0055082..4e4c8b9ee0 100644 --- a/xen/drivers/passthrough/io.c +++ b/xen/drivers/passthrough/io.c @@ -187,7 +187,6 @@ int pt_irq_create_bind_vtd( else { uint32_t mask = HVM_IRQ_DPCI_MACH_MSI | HVM_IRQ_DPCI_GUEST_MSI; - uint32_t old_gvec; if ( (hvm_irq_dpci->mirq[pirq].flags & mask) != mask) { @@ -196,7 +195,6 @@ int pt_irq_create_bind_vtd( } /* if pirq is already mapped as vmsi, update the guest data/addr */ - old_gvec = hvm_irq_dpci->mirq[pirq].gmsi.gvec; hvm_irq_dpci->mirq[pirq].gmsi.gvec = pt_irq_bind->u.msi.gvec; hvm_irq_dpci->mirq[pirq].gmsi.gflags = pt_irq_bind->u.msi.gflags; } -- 2.30.2